<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	
	<script type="text/javascript">
		
		var score=+prompt("请输入你的成绩：")
		
		a=score>=60?1:2
		
		switch (a){
			case 1:
				alert("合格")
				break;
			case 2:
				alert("不合格")
				break;
		}
	</script>
	<body>
	</body>
</html>
